Optimal. Leaf size=89 \[ \frac {\sin ^5(c+d x)}{7 a^2 d}-\frac {10 \sin ^3(c+d x)}{21 a^2 d}+\frac {5 \sin (c+d x)}{7 a^2 d}+\frac {2 i \cos ^5(c+d x)}{7 d \left (a^2+i a^2 \tan (c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 89, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3500, 2633} \[ \frac {\sin ^5(c+d x)}{7 a^2 d}-\frac {10 \sin ^3(c+d x)}{21 a^2 d}+\frac {5 \sin (c+d x)}{7 a^2 d}+\frac {2 i \cos ^5(c+d x)}{7 d \left (a^2+i a^2 \tan (c+d x)\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2633
Rule 3500
Rubi steps
\begin {align*} \int \frac {\cos ^3(c+d x)}{(a+i a \tan (c+d x))^2} \, dx &=\frac {2 i \cos ^5(c+d x)}{7 d \left (a^2+i a^2 \tan (c+d x)\right )}+\frac {5 \int \cos ^5(c+d x) \, dx}{7 a^2}\\ &=\frac {2 i \cos ^5(c+d x)}{7 d \left (a^2+i a^2 \tan (c+d x)\right )}-\frac {5 \operatorname {Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,-\sin (c+d x)\right )}{7 a^2 d}\\ &=\frac {5 \sin (c+d x)}{7 a^2 d}-\frac {10 \sin ^3(c+d x)}{21 a^2 d}+\frac {\sin ^5(c+d x)}{7 a^2 d}+\frac {2 i \cos ^5(c+d x)}{7 d \left (a^2+i a^2 \tan (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.24, size = 95, normalized size = 1.07 \[ \frac {i \sec ^2(c+d x) (-70 i \sin (c+d x)+63 i \sin (3 (c+d x))+5 i \sin (5 (c+d x))-140 \cos (c+d x)+42 \cos (3 (c+d x))+2 \cos (5 (c+d x)))}{336 a^2 d (\tan (c+d x)-i)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.60, size = 74, normalized size = 0.83 \[ \frac {{\left (-7 i \, e^{\left (10 i \, d x + 10 i \, c\right )} - 105 i \, e^{\left (8 i \, d x + 8 i \, c\right )} + 210 i \, e^{\left (6 i \, d x + 6 i \, c\right )} + 70 i \, e^{\left (4 i \, d x + 4 i \, c\right )} + 21 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 3 i\right )} e^{\left (-7 i \, d x - 7 i \, c\right )}}{672 \, a^{2} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.93, size = 145, normalized size = 1.63 \[ \frac {\frac {7 \, {\left (9 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 15 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 8\right )}}{a^{2} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + i\right )}^{3}} + \frac {273 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} - 1155 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 2450 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 2870 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 2037 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 791 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 152}{a^{2} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}^{7}}}{168 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.43, size = 174, normalized size = 1.96 \[ \frac {-\frac {i}{8 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )^{2}}-\frac {1}{12 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )^{3}}+\frac {3}{8 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )}+\frac {2 i}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )^{6}}-\frac {5 i}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )^{4}}+\frac {23 i}{8 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )^{2}}-\frac {4}{7 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )^{7}}+\frac {4}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )^{5}}-\frac {55}{12 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )^{3}}+\frac {13}{8 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )}}{a^{2} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.87, size = 161, normalized size = 1.81 \[ \frac {\left (-21\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8\,42{}\mathrm {i}+28\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,56{}\mathrm {i}+42\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,28{}\mathrm {i}+76\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,24{}\mathrm {i}+3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-6{}\mathrm {i}\right )\,2{}\mathrm {i}}{21\,a^2\,d\,{\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+1{}\mathrm {i}\right )}^3\,{\left (1+\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,1{}\mathrm {i}\right )}^7} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.59, size = 233, normalized size = 2.62 \[ \begin {cases} \frac {\left (- 176160768 i a^{10} d^{5} e^{19 i c} e^{3 i d x} - 2642411520 i a^{10} d^{5} e^{17 i c} e^{i d x} + 5284823040 i a^{10} d^{5} e^{15 i c} e^{- i d x} + 1761607680 i a^{10} d^{5} e^{13 i c} e^{- 3 i d x} + 528482304 i a^{10} d^{5} e^{11 i c} e^{- 5 i d x} + 75497472 i a^{10} d^{5} e^{9 i c} e^{- 7 i d x}\right ) e^{- 16 i c}}{16911433728 a^{12} d^{6}} & \text {for}\: 16911433728 a^{12} d^{6} e^{16 i c} \neq 0 \\\frac {x \left (e^{10 i c} + 5 e^{8 i c} + 10 e^{6 i c} + 10 e^{4 i c} + 5 e^{2 i c} + 1\right ) e^{- 7 i c}}{32 a^{2}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________